var clientRoot = "/" + document.location.pathname.split("/")[1];
var root = clientRoot;
if(root==="/refine"){
	root="/jaxrs";
}else{
	root=root+"/rest";
}
/*if(root==="/bpmn"){
	root="/cxf/rest";
}
if(root === "/noframwork"){
	root="";
}*/
// bootstrap app via plugin loader
$(function () {
  //flowas.net
  //hawtioPluginLoader.addUrl("../js/base.json");
  //hawtioPluginLoader.addUrl(root+'/crudRest/profile/plugins');	
  
  //hawtioPluginLoader.loadPlugins(function () {
    var doc = $(document);
    angular.bootstrap(doc, ["topMain","baseCrud"]);
    $(document.documentElement).attr('xmlns:ng', "http://angularjs.org");
    $(document.documentElement).attr('ng-app', 'App');
  //});
});

